#ifndef YXADDTABLEDELEGATE_H
#define YXADDTABLEDELEGATE_H
#include "yxtablemodel.h"

#include <QItemDelegate>
#include <QWidget>
#include <QTableView>

class YXAddTableDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    explicit YXAddTableDelegate(QObject *parent = NULL);
    QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, \
                            const QModelIndex &index) const;
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model, \
                            const QModelIndex &index) const;
    void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option,\
                            const QModelIndex &index) const;
signals:

public slots:
};

#endif // YXADDTABLEDELEGATE_H
